// 架构引用
import { createApp } from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'

// 外部库引用
import ElementPlus from 'element-plus'
import * as Three from 'three'

// 样式引用
import './style'
import 'element-plus/dist/index.css'

const app = createApp(App)

// 注册vuex
app.use(store)
// 注册路由
app.use(router)
// 注册Element-plus
app.use(ElementPlus)
// 创建ThreeJS全局变量
app.provide('Three', Three)
app.config.globalProperties.$Three = Three
app.mount('#app')
